package com.globallogic.vkulyk.JaxbHandler;

import com.thaiopensource.relaxng.translate.Driver;

public class XsdGenerator {
	private String xmlFile = "";
	private String xsdFile = "";

	public XsdGenerator(String xmlFile, String xsdFile) {
		this.xmlFile = xmlFile;
		this.xsdFile = xsdFile;
	}

	public void generateXsd() {
		String[] args = { "-I", "xml", "-O", "xsd", xmlFile, xsdFile };
		Driver.main(args);
	}

}
